import { createSSRApp } from "vue";

import App from "./App.vue";
import uView from "@/uni_modules/uview-plus";
import Vconsole from "vconsole";
// #ifdef H5
if (process.env.NODE_ENV == "development") {
  new Vconsole();
}
// #endif

// base css
import "@/styles/base.css";

// tailwind
import "@/styles/tailwind.css";

// pinia
import { createPinia } from "pinia";
const pinia = createPinia();

export function createApp() {
  const app = createSSRApp(App);
  app.use(uView).use(pinia);

  return {
    app,
  };
}
